module.exports = function (success) {
  const mongoose = require('mongoose')
  mongoose.set('strictQuery', true)
  mongoose.connect('mongodb://127.0.0.1:27017/hqh')
  mongoose.connection.once('open', () => {
    success()
  })
  mongoose.connection.on('error', () => {
  })
  mongoose.connection.on('close', () => {
  })
}
